﻿@{    
    
           var lookUp = UrlData[0].ToLower();;
           var id = UrlData[1];
           var data=new object();
           switch(lookUp){
            case "country":
                data = RefDataManager.GetCountryValuesByRegion(id);
                
                break;
            case "state":
                data = RefDataManager.GetStateValuesByCountry(id);
                break;
            }
             Json.Write(data, Response.Output);
            
           
}
